<%@ page language="java" contentType="text/html; charset=UTF-8" trimDirectiveWhitespaces="true"
    pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/views/include.inc.jsp"%>

<dwz:paginationForm action="${contextPath}/book/list" page="${page}" onsubmit="return navTabSearch(this)">
</dwz:paginationForm>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<shiro:hasPermission name="Book:view">
			<li><a iconClass="application" mask="true" target="dialog" rel="lookup2book_view" width="540" height="350"  href="${contextPath}/book/view/{slt_uid}"><span>查看图书</span></a></li>
			</shiro:hasPermission>
			<shiro:hasPermission name="Book:create">
			<li><a iconClass="application_add" mask="true" target="dialog" rel="lookup2book_create" width="540" height="350"  href="${contextPath}/book/create"><span>添加图书</span></a></li>
			</shiro:hasPermission>
			<shiro:hasPermission name="Book:edit">
			<li><a iconClass="application_edit" target="dialog"  rel="lookup2book_edit" width="540" height="350" mask="true" href="${contextPath}/book/edit/{slt_uid}"><span>编辑图书</span></a></li>
			</shiro:hasPermission>
			<shiro:hasPermission name="Book:delete">
			<li><a iconClass="application_delete" class="delete" target="selectedTodo" rel="bids"  title="确认要删除用户吗?"   href="${contextPath}/book/delete"><span>删除图书</span></a></li>
			</shiro:hasPermission>
		</ul>
	</div>
	<table class="table" layoutH="75" width="100%">
		<thead>
			<tr>
						<th width="22"><input type="checkbox" group="bids" class="checkboxCtrl"></th>
						<th>code</th>
						<th>名字</th>
						<th>作者</th>
						<th>页数</th>
						<th>价格</th>
						<th>发布时间</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach var="item" items="${bookList}">
			<tr target="slt_uid" rel="${item.bid}">
				
						<td><input name="bids" value="${item.bid}" type="checkbox"></td>
						<td>${item.code}</td>
						<td>${item.name}</td>
						<td>${item.author}</td>
						<td>${item.page}</td>
						<td>${item.price}</td>
						<td><fmt:formatDate value="${item.publicTime}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
			</tr>
			</c:forEach>
		</tbody>
	</table>
	
	<!-- 分页 -->
	<dwz:pagination page="${page}" />

	
</div>